x86/cpu: Use cpu_has_sep for configuring the SYSENTER MSRs
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 26 Apr 2019 10:19:07 +0000 (11:19 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 13 May 2019 09:35:37 +0000 (10:35 +0100)
commit7c169a700a2863d290c39cd0047f8b908d6ef333
tree2ec5f330a24fb3b77226fb4b9effbf661444d5e4
parente21a83aab78ecda7004336baeced56cd9bd0c40a
x86/cpu: Use cpu_has_sep for configuring the SYSENTER MSRs

Currently, configuration of the SYSENTER MSRs are behind a vendor check for
Intel and Centaur, but this misses Zhaoxin.

Use the feature bit, rather than a vendor check.  cpu_has_sep is cleared early
for AMD processors, which can't use SYSENTER/SYSEXIT when operating in long
mode.

Suggested-by: Jan Beulich <JBeulich@suse.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/acpi/suspend.c
xen/arch/x86/x86_64/traps.c